{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/header.html"}
{literal}
<script type="text/javascript">
    $(function(){
        $('.assortment').hover(function(){
            $('.assort_list').stop().fadeIn();
        },function(){
            $('.assort_list').stop().fadeOut();
        });
    });
</script>
<script type="text/javascript" src="/js/principal.js"></script>
<style>
    .assort_list{display: none;}
</style>
{/literal}

<div class="search_list">
    <div class="search_crumbs">
        <p class="fl">全部结果<i class="ffs">></i></p>
        {if $cate_name <> ''}
        <p class="fl crumbattr"><a href="/search/index?kd={$kd}&cates_name={$cates_name}&currency_name={$currency_name}&area_id={$area_id}&area_name={$area_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search ={$list_search}&order={$order}">品种：{$cate_name}<i class="close">关闭</i></a></p>
        {/if}
        {if $currency_name <> ''}
        <p class="fl crumbattr"><a href="/search/index?kd={$kd}&cate_name={$cate_name}&cates_name={$cates_name}&area_id={$area_id}&area_name={$area_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search ={$list_search}&order={$order}">币种：{$currency_name}<i class="close">关闭</i></a></p>
        {/if}
        {if $area_name <> ''}
        <p class="fl crumbattr"><a href="/search/index?kd={$kd}&cate_name={$cate_name}&cates_name={$cates_name}&currency_name={$currency_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search ={$list_search}&order={$order}">交货地：{$area_name}<i class="close">关闭</i></a></p>
        {/if}
        <p class="fl"><i class="ffs">></i></p>
        <form method="get" action="">
            <input type="hidden" class="orit" name="cate_name" value="{$cate_name}"/>
            <input type="hidden" class="orit" name="kd" value="{$kd}"/>
            <input type="hidden" class="orit" name="currency_name" value="{$currency_name}"/>
            <input type="hidden" class="orit" name="area_id" value="{$area_id}"/>
            <input type="hidden" class="orit" name="area_name" value="{$area_name}"/>
            <p class="fl crumbattr_search"><input type="text" name="list_search" value="{$list_search}" placeholder="在当前条件下搜索" class="crumbsearch-input"/><input class="crumbsearch-btn" value="" type="submit"/></p>
        </form>
        <p class="fr">共<span class="blue fwb fs16" id="total">{$totalnum}</span>件相关商品</p>
    </div>


    <div class="nav_prop">
        {if $cate_name eq ''}
        <div class="nav_variety">
            <span class="fl">品　种</span>
            <div class="search_wrap_text">
                {if $cate<>''}
                {foreach from=$cate key=key item=item}
                <a href="/search/index?kd={$kd}&cate_name={$item.cate_name}&cates_name={$cates_name}&currency_name={$currency_name}&area_id={$area_id}&area_name={$area_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search={$list_search}&order={$order}" title="{$item.cate_name}" cate_name="{$item.cate_name}">{$item.cate_name}</a>
                {/foreach}
                {/if}
            </div>
        </div>
        {/if}
        {if $currency_name eq ''}
        <div class="nav_rmb">
            <span class="fl">币　种</span>
            <div class="search_wrap_text">
                {if $CurrencyShow<>''}
                {foreach from=$CurrencyShow key=key item=item}
                <a href="/search/index?kd={$kd}&cate_name={$cate_name}&cates_name={$cates_name}&currency_name={$item.name}&area_id={$area_id}&area_name={$area_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search={$list_search}&order={$order}" title="{$item.name}"  currency_name="{$item.name}">{$item.name}</a>
                {/foreach}
                {/if}
            </div>
        </div>
        {/if}
        {if $area_name eq ''}
        <div class="nav_area">
            <span class="fl">交货地</span>
            <div class="search_wrap_text">
                <div class="search_te">
                    {if $AreaShow<>''}
                    {foreach from=$AreaShow key=key item=item}
                    <a href="/search/index?kd={$kd}&cate_name={$cate_name}&cates_name={$cates_name}&currency_name={$currency_name}&area_id={$item.area_id}&area_name={$item.area_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search={$list_search}&order={$order}" title="{$item.area_name}"  area_id="{$item.area_id}" area_name="{$item.area_name}" >{$item.area_name}</a>
                    {/foreach}
                    {/if}
                </div>
                {if $CountArea>9}
                <div class="swt_text stms1"><span>更多</span><i></i></div>
                {/if}
            </div>
        </div>
        {/if}
        <div class="search_prot">
            <form name="" action="" method="get">
                <input type="hidden" class="orit" name="currency_name" value="{$currency_name}"/>
                <input type="hidden" class="orit" name="kd" value="{$kd}"/>
                <input type="hidden" class="orit" name="area_id" value="{$area_id}"/>
                <input type="hidden" class="orit" name="area_name" value="{$area_name}"/>
                <input type="hidden" class="orit" name="cate_name" value="{$cate_name}"/>
                <input type="hidden" class="orit" name="list_search" value="{$list_search}"/>
                <input type="hidden" class="orit" name="order" value="{$order}"/>
                品种：<input type="text" class="orit" name="cate_name" value="{$cate_name}"/>
                交货地：<input type="text" class="orit" name="area_name" value="{$area_name}"/>
                牌号：<input type="text" class="orit" name="product_name" value="{$product_name}"/>
                厂商：<input type="text" class="orit" name="brand_name" value="{$brand_name}"/>
                <input class="orit_btn" type="submit" value="搜 索"/>
            </form>
        </div>

    </div>

    <div class="search_text_wrap">

        <div class="search_menb">
            <div class="relsearch">
                {if $order eq ''}
                <a href="/search/index?kd={$kd}&cate_name={$cate_name}&cates_name={$cates_name}&currency_name={$currency_name}&area_id={$area_id}&area_name={$area_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search={$list_search}" class="fsort curr">综合<i></i></a>
                {else}
                <a href="/search/index?kd={$kd}&cate_name={$cate_name}&cates_name={$cates_name}&currency_name={$currency_name}&area_id={$area_id}&area_name={$area_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search={$list_search}" class="fsort">综合<i></i></a>
                {/if}
                {if $order eq 'numdesc'}
                <a href="/search/index?kd={$kd}&cate_name={$cate_name}&cates_name={$cates_name}&currency_name={$currency_name}&area_id={$area_id}&area_name={$area_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search={$list_search}" class="fsort curr">数量<i></i></a>
                {else}
                <a href="/search/index?kd={$kd}&cate_name={$cate_name}&cates_name={$cates_name}&currency_name={$currency_name}&area_id={$area_id}&area_name={$area_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search={$list_search}&order=numdesc" class="fsort">数量<i></i></a>
                {/if}
                {if $order eq 'pricedesc'}
                <a href="/search/index?kd={$kd}&cate_name={$cate_name}&cates_name={$cates_name}&currency_name={$currency_name}&area_id={$area_id}&area_name={$area_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search={$list_search}" class="pirce curr curr1">价格<i></i></a>
                {else if $order eq 'priceasc' }
                <a href="/search/index?kd={$kd}&cate_name={$cate_name}&cates_name={$cates_name}&currency_name={$currency_name}&area_id={$area_id}&area_name={$area_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search={$list_search}&order=pricedesc" class="pirce curr">价格<i></i></a>
                {else}
                <a href="/search/index?kd={$kd}&cate_name={$cate_name}&cates_name={$cates_name}&currency_name={$currency_name}&area_id={$area_id}&area_name={$area_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search={$list_search}&order=priceasc" class="pirce">价格<i></i></a>
                {/if}

                <!--<div class="place_delivery">-->

                    <!--<div class="place_dtt">交货地：<span class="pd_text">{$delivery_area}</span><i class="pd_b"></i></div>-->

                    <!--<div class="place_de_popup">-->
                        <!--<h3 class="place_de_h3">选择交货地</h3>-->
                        <!--<p class="place_de_p">-->
                            <!--{foreach from = $DeliveryShow key=key item=item}-->
                            <!--<a href="/search/index?kd={$kd}&cate_name={$cate_name}&cates_name={$cates_name}&currency_name={$currency_name}&area_id={$area_id}&area_name={$area_name}&region_name={$region_name}&brand_name={$brand_name}&product_name={$product_name}&list_search={$list_search}&delivery_area={$item}">{$item}</a>-->
                            <!--{/foreach}-->
                        <!--</p>-->
                    <!--</div>-->

                <!--</div>-->
                <form name="" action="" method="get" class="fl">
                    <div class="ppld_input">
                        <input type="hidden" class="orit" name="kd" value="{$kd}"/>
                        <input type="hidden" class="orit" name="cate_name" value="{$cate_name}"/>
                        <input type="hidden" class="orit" name="area_name" value="{$area_name}"/>
                        <input type="hidden" class="orit" name="product_name" value="{$product_name}"/>
                        <input type="hidden" class="orit" name="brand_name" value="{$brand_name}"/>
                        <input type="text" name="minprice" value="{$minprice}" placeholder="¥最低价"/>-
                        <input type="text" name="maxprice" value="{$maxprice}" placeholder="¥最高价"/>
                    </div>
                    <input type="submit" class="ppld_btn" value="确定"/>
                </form>
                <div class="ppld_flip">
                    <!--<p class="fl"><span class="blue" id="currPage"></span>/<span id="totalPage"></span></p>-->
                    <!--<a href="javascript:void(0)" onclick="prePage()" class="left_btn ffs lb_default"><</a>-->
                    <!--<a href="javascript:void(0)" onclick="nextPage()" class="right_btn ffs lb_default">></a>-->
                    {$linkpage}
                </div>

            </div>
        </div>
    </div>


    <div class="product">

        <div class="product_title">
            <span class="items breed">品种</span>
            <span class="items grade">牌号</span>
            <span class="items firm">厂商</span>
            <span class="items price">价格(元/吨)</span>
            <span class="items number">数量（吨）</span>
            <span class="items supplier">供应商</span>
            <span class="items operate">操作</span>
        </div>
        <ul class="product_iwrap">
            {if !$data}
            <li class="tac pt10 pb10">暂无信息</li>
            {else}
            {foreach from=$data key=key item=item}
            <li class="product_item">
                <div class="product_list_title">
                    <span class="items icons" product_id="{$item.product_id}">+</span>
                    <span class="items breed">{$item.cate_name}</span>
                    <span class="items grade">{$item.product_name}</span>
                    <span class="items firm">{$item.brand_name}</span>
                    <span class="items price orange fwb">{$item.price}起</span>
                    <span class="items number">{$item.num}</span>
                    <span class="items supplier blue">{$item.price_num}家报价</span>
                    <span class="items operate" product_id="{$item.product_id}"><a href="#">查看</a></span>
                </div>

                <ul class="product_list_content">

                </ul>

            </li>
            {/foreach}
            {/if}
        </ul>
    </div>

    <div class="page tar ptb10p" id="page">{$links}</div>

</div>


{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/footer.html"}